package com.element5th.shop.servlet.user;
import com.element5th.comm.ConnectionPool;
import com.element5th.shop.comm.BaseDao;
import com.element5th.shop.dto.BaseDto;
import com.element5th.shop.entity.User;


public class RecharImp extends BaseDao {
	/**
	 * @param args
	 * 
	 */
	public static User select(BaseDto dto,int id){
		RecharImp res = new RecharImp();
		ConnectionPool.getConnection();
		User user=res.findById(User.class, dto.getUser().getUserId());
		return user;
	}
	public static void update(BaseDto dto) {
		RecharImp res = new RecharImp();
		ConnectionPool.getConnection();
		res.update(dto.getUser(), dto.getUser().getUserId());
		res.commit();
	}
}
